package com.easondongh.spring.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author donghao
 * @date 2021/12/26 20:29
 */
@Component
public class UserService implements ICommon {

    private String name;

    @Resource
    private OrderService orderService;

//    public UserService(OrderService orderService) {
//    }

    public void test() {
        System.out.println(name + " UserService.test");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
